// 引用 vue-router
import VueRouter from "vue-router";
import Vue from "vue";
import Home from './pages/Home'

Vue.use(VueRouter)

const routes = [
    {
        path:'/',
        component:Home
    },
    {
        path:'/edit',
        component: ()=>import('./pages/Edit')
    }

]
const router = new VueRouter({
    routes,
    mode: 'hash'
})

export default router